<div class="row">
	<div class="panel callout">
			<p>Filtered: All Unpaid Students</p>
	</div>
	<!--<div>
	<?if(isset($system_message))echo $system_message;?>
	<?php 
		$formAttrib = array('id' => 'addroom', 'class' => 'admin-form');
		$levelAttrib = array('' => 'Select student level..');
		$searchItm = array('name' => 'search_string_item[search_itm]', set_value("search_string_item[search_itm]"), 'id' => 'search_itm');
		echo form_open('search/search_students/', $formAttrib);
	?>
    
    <div class="input-block">
    <?php
		echo form_label('Name or IDNO :', 'search_itm');
		echo form_input($searchItm);	
	?>
    </div>
    
    <div class="input-block">
    <?php
		echo form_label('Level :', 'code');
		if(!empty($levels)){
		echo form_dropdown('search_string_item[level_id]', $levels, '');		
		}else{
			echo 'No Levels found <br></br>';
		}
	?>
    </div>

    <div class="input-block" style="clear:both;">
   		<?php echo form_submit('search', 'Search Student'); ?>
	</div>

	</div>-->
	<div class="clearfloat"></div>
	<fieldset>
		<legend class="label"> Unpaid Students</legend>
		<?=$links;?>
		<?if(!empty($students)):?>
			<table class="table table-striped table-hover">
			<thead class="tabular-head">
			<tr>
            	<th>IDNO</th>
				<th>Student Name</th>
				<th>Grade Level</th>
				<th>Room Assignment</th>
			</tr>
			</thead>
			<tbody class="tabular">
			<?foreach($students as $student):?>
				<tr>
                	<td><?=$student->e_student_id?></td>
					<td><?=ucwords($student->fullname);?></td>
					<td><?=$student->level_desc;?></td>
					<td colspan="2">
						<ul>
							<?=$student_link($student->enrollment_id);?>
							<?=$delete_link($student->enrollment_id);?>
							<?=$finance_link($student->enrollment_id);?>
							<?=$registrar_link($student->enrollment_id);?>
							<?=$enrollment_transaction_slip($student->enrollment_id);?>
						</ul>
					</td>
				</tr>
			
			<?endforeach;?>
			</tbody>
			</table>
			<?=$links;?>
		<?else:?>
			<div class="alert-box">
			<i class="icon-exclamation-sign icon-white"></i> Nothing found!
		</div>
		<?endif;?>
		</fieldset>

</div>